/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dailydilbert;

/**
 *
 * @author sarcoex
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Dilbert dilbert = new Dilbert();

        if (args.length > 0)
            dilbert.html = args[0];
        else {
            Config conf = new Config();
            conf.readConfig(Config.DEFAULT_CONFIG);
            dilbert.html = conf.htmlOut;
        }

        dilbert.getDaily();
    }
}
